package com.online.robot.wechat.handler;

import com.online.robot.wechat.builder.TextBuilder;
import me.chanjar.weixin.common.session.WxSessionManager;
import me.chanjar.weixin.mp.api.WxMpService;
import me.chanjar.weixin.mp.bean.message.WxMpXmlMessage;
import me.chanjar.weixin.mp.bean.message.WxMpXmlOutMessage;
import org.springframework.stereotype.Component;

import java.util.Map;

@Component
public class LinkElmHandler extends AbstractHandler {

    private String createPoint(String mobile, int point) {
        return "叮咚~恭喜您获得10积分，满20积分即可开一次饿了么最佳手气大红包！\n\n" +
                "输入关键词【积分】，可查看积分剩余情况\n\n" +
                "发送数字【1】可立即领取饿了么大红包";
    }

    @Override
    public WxMpXmlOutMessage handle(WxMpXmlMessage wxMessage, Map<String, Object> context, WxMpService weixinService,
                                    WxSessionManager sessionManager) {
        return new TextBuilder().build("上传成功", wxMessage);
    }
}
